package com.syaccp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.syaccp.model.TCustomerBill;
import com.syaccp.service.TCustomerBillService;
import com.syaccp.mapper.TCustomerBillMapper;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.SQLException;
import java.util.List;

/**
 *
 */
@Service
public class TCustomerBillServiceImpl extends ServiceImpl<TCustomerBillMapper, TCustomerBill>
    implements TCustomerBillService{
    @Resource
    private TCustomerBillMapper tCustomerBillMapper;
    @Override
    public PageInfo<TCustomerBill> pageSelectAll(int index,TCustomerBill tCustomerBill) throws SQLException {
        PageHelper.startPage(index,15);
        return new PageInfo<TCustomerBill>(tCustomerBillMapper.likeSelectAll(tCustomerBill));
    }

    @Override
    public List<TCustomerBill> likeSelectAll(TCustomerBill tCustomerBill) throws SQLException {
        return tCustomerBillMapper.likeSelectAll(tCustomerBill);
    }


    @Override
    public List<TCustomerBill> PaymentStatement() {
        return tCustomerBillMapper.PaymentStatement();
    }

    @Override
    public PageInfo<TCustomerBill> PagingQueryPayment(Integer index) {
        PageHelper.startPage(index,15);
        return new PageInfo<TCustomerBill>(tCustomerBillMapper.PaymentStatement());
    }

}




